var url_account = BASE_PATH + "800013.web";
function loadAccount(){
	formSubmitForAjax({
		url:url_account,
		success:showAccount
	});
}

//加载完成执行
$(document).ready(function() {

	loadAccount();
	
	document.getElementById("beginTime").value=today();
	document.getElementById("endTime").value=ytoday();
	
});



function showAccount(json){
	try {
		if(codeSuccess(json)){
			var account = json['BALANCE'];
			var money=document.getElementById("balance").innerHTML;
//			alert(money);
			document.getElementById("balance").innerHTML=account;
//			$(".account_balance").html($(".account_balance").html()+account);
//			$("#orderListView"+i).html($("#orderListView").html() + order['PRDNAME']+ order['ORDERDATE']+ order['ORDAMT']);
		}else{
			$(".account_balance").html($(".account_balance").html()+"<div>加载失败</div>");
		}
		changeType();

	} catch (e) {
		// TODO: handle exception
	}
}

function changeType(){
	var balance=document.getElementById("balance").innerHTML;
	if(balance.length>=9){
//	alert("判断");
		$("#balance").css("font-size","20px");
	}
}